Apple (AAPL. O) CEO Tim Cook said it will continue to make significant investments in artificial intelligence technology.